<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>
<iframe width="320px" height="548px" src="index.html"></iframe>
<script>
    document.getElementsByTagName("iframe").item(0).onload = function(){
        window.game = document.getElementsByTagName("iframe").item(0).contentWindow.game;
    };
</script>
</body>
</html>